package atom.core3.hibernate.jpa;

import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class DBAnnotation
{
	private String tableName;
	//private String beanKey;//复合主键的ID
	//private Method beanKeyGetMethod;//复合主键的method
	//private Method beanKeySetMethod;//复合主键的method
	private DBFieldAnnotation beanKey ;
	private Map<String,DBFieldAnnotation> fieldAnnotationMap  = new ConcurrentHashMap() ;
	private Map<String,DBFieldAnnotation> keyAnnotationMap  = new ConcurrentHashMap() ;
	
	public String getTableName()
    {
    	return tableName;
    }
	public void setTableName(String tableName)
    {
    	this.tableName = tableName;
    }
	

	

	public Map<String, DBFieldAnnotation> getFieldAnnotationMap()
    {
    	return fieldAnnotationMap;
    }
	public void setFieldAnnotationMap(Map<String, DBFieldAnnotation> fieldAnnotationMap)
    {
    	this.fieldAnnotationMap = fieldAnnotationMap;
    }
	public Map<String, DBFieldAnnotation> getKeyAnnotationMap()
    {
    	return keyAnnotationMap;
    }
	public void setKeyAnnotationMap(Map<String, DBFieldAnnotation> keyAnnotationMap)
    {
    	this.keyAnnotationMap = keyAnnotationMap;
    }
	public DBFieldAnnotation getBeanKey()
    {
    	return beanKey;
    }
	public void setBeanKey(DBFieldAnnotation beanKey)
    {
    	this.beanKey = beanKey;
    }



}
